import 'dart:convert';

import 'package:flutter/cupertino.dart';
import 'package:lepig/model/BannerModel.dart';
import 'package:lepig/model/SelectShopPlatformModel.dart';

import 'lib/HttpManager.dart';
import 'lib/NWApi.dart';
import 'lib/NWMethod.dart';

//商城平台
Future<List<SelectShopPlatformModel>> HttpSelectShopPlatform(BuildContext context,) async {

  Map responseBody = await HttpManager()
      .request(NWApi.selectShopPlatform, NWMethod.GET);
  List<dynamic> list = responseBody["data"];

  List<SelectShopPlatformModel> lists = new List<SelectShopPlatformModel>();
  list.forEach((element) {
    lists.add(SelectShopPlatformModel.fromJson(element));
  });
  return lists;
}


